home *** CD-ROM | disk | FTP | other *** search
-
-
-
- GETRPCENT C Library Procedures GETRPCENT
-
-
-
- NNAAMMEE
- getrpcent, getrpcbyname, getrpcbynumber - get RPC entry
-
- SSYYNNOOPPSSIISS
- ##iinncclluuddee <<nneettddbb..hh>>
-
- ssttrruucctt rrppcceenntt **ggeettrrppcceenntt(())
-
- ssttrruucctt rrppcceenntt **ggeettrrppccbbyynnaammee((nnaammee))
- cchhaarr **nnaammee;;
-
- ssttrruucctt rrppcceenntt **ggeettrrppccbbyynnuummbbeerr((nnuummbbeerr))
- iinntt nnuummbbeerr;;
-
- sseettrrppcceenntt ((ssttaayyooppeenn))
- iinntt ssttaayyooppeenn
-
- eennddrrppcceenntt (())
-
- DDEESSCCRRIIPPTTIIOONN
- ggeettrrppcceenntt, ggeettrrppccbbyynnaammee, and ggeettrrppccbbyynnuummbbeerr each return a
- pointer to an object with the following structure containing
- the broken-out fields of a line in the rpc program number
- data base, //eettcc//rrppcc.
-
- ssttrruucctt rrppcceenntt {{
- cchhaarr **rr__nnaammee;; //** nnaammee ooff sseerrvveerr ffoorr tthhiiss rrppcc pprrooggrraamm **//
- cchhaarr ****rr__aalliiaasseess;; //** aalliiaass lliisstt **//
- lloonngg rr__nnuummbbeerr;; //** rrppcc pprrooggrraamm nnuummbbeerr **//
- }};;
-
- The members of this structure are:
- rr__nnaammee The name of the server for this rpc
- program.
- rr__aalliiaasseess A zero terminated list of alternate
- names for the rpc program.
- rr__nnuummbbeerr The rpc program number for this
- service.
-
- ggeettrrppcceenntt reads the next line of the file, opening the file
- if necessary.
-
- ggeettrrppcceenntt opens and rewinds the file. If the _s_t_a_y_o_p_e_n flag
- is non-zero, the net data base will not be closed after each
- call to ggeettrrppcceenntt (either directly, or indirectly through
- one of the other "getrpc" calls).
-
- eennddrrppcceenntt closes the file.
-
- ggeettrrppccbbyynnaammee and ggeettrrppccbbyynnuummbbeerr sequentially search from the
- beginning of the file until a matching rpc program name or
- program number is found, or until EOF is encountered.
-
-
-
- Sprite v1.0 6 October 1987 1
-
-
-
-
-
-
- GETRPCENT C Library Procedures GETRPCENT
-
-
-
- FFIILLEESS
- //eettcc//rrppcc
-
- SSEEEE AALLSSOO
- rrppcc(5), rrppcciinnffoo(8),
-
- DDIIAAGGNNOOSSTTIICCSS
- Null pointer ((00)) returned on EOF or error.
-
- BBUUGGSS
- All information is contained in a static area so it must be
- copied if it is to be saved.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Sprite v1.0 6 October 1987 2
-
-
-
-